package com.jxtc.enterprise.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jxtc.enterprise.common.entity.FoodMenu;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

public interface AdminViewFoodMenuMapper extends BaseMapper<FoodMenu> {


    int queryCompanyMenusByCompanyIdByPageCount(@Param("companyId") String companyId);

    List<HashMap<String, Object>> queryCompanyMenusByCompanyIdByPage(@Param("companyId") String companyId,
                                                                     @Param("offset") Integer offset, @Param("count") Integer count);


    int queryCompanyMenusByPageCount(@Param("tenantName") String tenantName, @Param("companyName") String companyName, @Param("menuStatus") int menuStatus);

    List<HashMap<String, Object>> queryCompanyMenusByPage(@Param("tenantName") String tenantName, @Param("companyName") String companyName,
                                                          @Param("menuStatus") int menuStatus,
                                                          @Param("offset") Integer offset, @Param("count") Integer count);
}
